﻿@attribute [JSCustomElement]

<MSheet Class="@($"overflow-hidden {Class}")"
        Dark="Dark"
        Outlined="@Outlined"
        Rounded="true"
        Width="@Width"
        MaxWidth="@MaxWidth"
        MinWidth="@MinWidth"
        @attributes="@Attributes">
    @ChildContent
</MSheet>

@code {

    [Parameter]
    public string? Class { get; set; }

    [Parameter]
    public bool Dark { get; set; }

    [Parameter]
    public RenderFragment? ChildContent { get; set; }

    [Parameter]
    public bool Outlined { get; set; } = true;

    [Parameter]
    public StringNumber? Width { get; set; }

    [Parameter]
    public StringNumber? MaxWidth { get; set; }

    [Parameter]
    public StringNumber? MinWidth { get; set; }

    [Parameter(CaptureUnmatchedValues = true)]
    public Dictionary<string, object> Attributes { get; set; } = new();

}
